<style media="screen">
#meetingTicketsAdmin form label{
	width:60px;
}
#meetingTicketsAdmin form#filterForm fieldset{float:left;}
#meetingTicketsAdmin form#filterForm input[type=submit]{margin-left:35px;}
#meetingTicketsAdmin #meetingTicketsResult{
	margin:2px 0px 0px 0px;
}
#meetingTicketsAdmin #meetingTicketsResult ol{
	width:300px;
	max-height:500px;
	float:left;
	overflow:auto;
	margin:0px;
	padding:0px;
	list-style-type:none;
	background:#fff;
	border:1px solid #555;
}
#meetingTicketsAdmin #meetingTicketsResult ol li{
	margin:0px;
	padding:2px 4px;
	border-bottom:1px dotted #aaa;
	font-size:9px;
	clear:both;
	float:left;
	cursor:pointer;
}

#meetingTicketsAdmin #meetingTicketsResult ol li.selected,
#meetingTicketsAdmin #meetingTicketsResult ol li:hover{
	background:{{$highlight}};
	color:{{$highlighttext}};
}
#meetingTicketsAdmin #meetingTicketsResult ol li>strong{
	font-size:9px;
}
#meetingTicketsAdmin #meetingTicketsResult ol li>.MT_info{
	margin-left:10px;
}
#meetingTicketsAdmin #meetingTicketsResult ol li .MT_ticket_poreklo,
#meetingTicketsAdmin #meetingTicketsResult ol li .MT_ticket_time{
	display:block;
	float:right;
	font-size:10px;
	margin-left:5px;
}
#meetingTicketsAdmin #meetingTicketsResult ol li .MT_napomena{color:#CC3300;}
#meetingTicketsAdmin #meetingTicketsResult ol li.selected .MT_napomena,
#meetingTicketsAdmin #meetingTicketsResult ol li:hover .MT_napomena{
	color:#FFF000;
}
#meetingTicketsAdmin #meetingTicketsResult ol li:last-child{
	border-bottom:none;
}
#meetingTicketsAdmin #meetingTicketsResult ol li input[type=checkbox]{
	float:right;
	margin:0px;
}
#meetingTicketsAdmin #meetingTicketsResult ol li input[type=button].delBtn,
#meetingTicketsAdmin #meetingTicketsResult ol li input[type=button].editBtn{
	float:right;
	margin:0px 2px 0px 0px;
	padding:0px;
	width:17px;
	height:17px;
	overflow:hidden;
	text-indent:-100em;
	background-repeat:no-repeat;
	background-position: center center;
}
#meetingTicketsAdmin #meetingTicketsResult ol li input[type=button].editBtn{background-image:url(gui/icons/edit.gif);}
#meetingTicketsAdmin #meetingTicketsResult ol li input[type=button].delBtn{background-image:url(gui/icons/delete.gif);}
#MT_listici{
	float:left;
	margin:2px 0px 0px 2px;
	padding:2px;
	display:none;
}
#meetingTicketsAdmin #MT_listici ol{
	margin:0px;
	padding:0px;
	list-style-type:none;
	background:#fff;
}
#meetingTicketsAdmin #MT_listici ol li{
	margin:0px;
	padding:0px;
}
#MT_resultList_actions input:disabled{
	display:none;
}
</style>
<style media="print">
#MT_listici{display:block}

#meetingTicketsAdmin>h1, #filterForm, meetingTicketsResult, MT_resultList_actions{
	display:none;
}
</style>
<div id="meetingTicketsAdmin">
<h1>Lisitići za sastanke</h1>
<form id="filterForm" class="area" action="javascript:void(0)" onsubmit="submitForm(this,'rokovnik.php','POST','setContent',1)">
	<input type="hidden" name="a" value="adminMeetings" />
	<input type="hidden" name="mod" value="browseMeetingTickets" />
	
	<label class="left" for="filter_komitent">Komitent:</label><input type="text" name="filter_komitent" id="filter_komitent" value="{{$filter_komitent}}" />
    <label class="left" for="filter_adresa">Adresa:</label><input type="text" name="filter_adresa" id="filter_adresa" value="{{$filter_adresa}}" />	
    <label class="left" for="filter_manager" style="width:90px">Menadžer:</label>
    <select name="filter_manager" id="filter_manager">
    	<option value="-2">---</option>
        <option value="-1" {{$selected_bez_manager}}>bez menadžera</option>
        {{%loop start manager_id}}
        <option value="{{$manager_id}}" {{$manager_selected}}>{{$manager_ime}}&nbsp;{{$manager_prezime}}</option>
        {{%loop end}}
    </select>
    <label class="left" for="filter_komercijalista" style="width:90px">Komercijalista:</label>
    <select name="filter_komercijalista" id="filter_komercijalista">
    	<option value="-2">---</option>
        <option value="-1" {{$selected_bez_radnik}}>bez komercijaliste</option>
        {{%loop start radnik_id}}
        <option value="{{$radnik_id}}" {{$radnik_selected}}>{{$radnik_ime}}&nbsp;{{$radnik_prezime}}</option>
        {{%loop end}}
    </select>
    <input type="submit" value="filter" />
    <br clear="all" />
    <fieldset>
    	<legend>Vreme poziva</legend>
        <fieldset>
            <legend>OD:</legend>
            <label for="filter_date_call" class="left">Datum:</label>
            <input type="text" name="filter_date_call" id="filter_date_call" value="{{$filter_date_call}}" />
            <input type="button" class="datePicker" onclick="displayDatePicker('filter_date_call',this)" />
            <br clear="all" />
            <label for="filter_hour_call" class="left">Sat:</label>
            <input type="text" maxlength="2" name="filter_hour_call" id="filter_hour_call" style="width:16px;" maxval="23" minval="0" value="{{$filter_hour_call}}" onchange="fixNumStepVal(this);" />
            <img src="gui/numstep.gif" border="0" usemap="#MapFILTER1_call" class="numstep" />
            <label for="filter_minute" class="left" style="width:auto;">Min:</label>
            <input type="text" maxlength="2" name="filter_minute_call" id="filter_minute_call" style="width:16px;" maxval="59" minval="0" value="{{$filter_minute_call}}" onchange="fixNumStepVal(this)" />
            <img src="gui/numstep.gif" border="0" usemap="#MapFILTER2_call" class="numstep" />
            <map name="MapFILTER1_call" id="MapFILTER1_call">
                <area shape="rect" coords="0,0,7,5" href="javascript:void(0)" onclick="incrementNumStep('filter_hour_call')" />
                <area shape="rect" coords="0,5,7,10" href="javascript:void(0)" onclick="decrementNumStep('filter_hour_call')" />
            </map>
            <map name="MapFILTER2_call" id="MapFILTER2_call">
                <area shape="rect" coords="0,0,7,5" href="javascript:void(0)" onclick="incrementNumStep('filter_minute_call')" />
                <area shape="rect" coords="0,5,7,10" href="javascript:void(0)" onclick="decrementNumStep('filter_minute_call')" />
            </map>
        </fieldset>
        <fieldset>
            <legend>DO:</legend>
            <label for="filter_date_do_call" class="left">Datum:</label>
            <input type="text" name="filter_date_do_call" id="filter_date_do_call" value="{{$filter_date_do_call}}" />
            <input type="button" class="datePicker" onclick="displayDatePicker('filter_date_do_call',this)" />
            <br clear="all" />
            <label for="filter_hour_do_call" class="left">Sat:</label>
            <input type="text" maxlength="2" name="filter_hour_do_call" id="filter_hour_do_call" style="width:16px;" maxval="23" minval="0" value="{{$filter_hour_do_call}}" onchange="fixNumStepVal(this);" />
            <img src="gui/numstep.gif" border="0" usemap="#MapFILTER1_do_call" class="numstep" />
            <label for="filter_minute_do_call" class="left" style="width:auto;">Min:</label>
            <input type="text" maxlength="2" name="filter_minute_do_call" id="filter_minute_do_call" style="width:16px;" maxval="59" minval="0" value="{{$filter_minute_do_call}}" onchange="fixNumStepVal(this)" />
            <img src="gui/numstep.gif" border="0" usemap="#MapFILTER2_do_call" class="numstep" />
            <map name="MapFILTER1_do_call" id="MapFILTER1_do_call">
                <area shape="rect" coords="0,0,7,5" href="javascript:void(0)" onclick="incrementNumStep('filter_hour_do_call')" />
                <area shape="rect" coords="0,5,7,10" href="javascript:void(0)" onclick="decrementNumStep('filter_hour_do_call')" />
            </map>
            <map name="MapFILTER2_do_call" id="MapFILTER2_do_call">
                <area shape="rect" coords="0,0,7,5" href="javascript:void(0)" onclick="incrementNumStep('filter_minute_do_call')" />
                <area shape="rect" coords="0,5,7,10" href="javascript:void(0)" onclick="decrementNumStep('filter_minute_do_call')" />
            </map>
        </fieldset>
	</fieldset>
    
    <fieldset>
    	<legend>Vreme sastanka</legend>
        <fieldset>
            <legend>OD:</legend>
            <label for="filter_date" class="left">Datum:</label>
            <input type="text" name="filter_date" id="filter_date" value="{{$filter_date}}" />
            <input type="button" class="datePicker" onclick="displayDatePicker('filter_date',this)" />
            <br clear="all" />
            <label for="filter_hour" class="left">Sat:</label>
            <input type="text" maxlength="2" name="filter_hour" id="filter_hour" style="width:16px;" maxval="23" minval="0" value="{{$filter_hour}}" onchange="fixNumStepVal(this);" />
            <img src="gui/numstep.gif" border="0" usemap="#MapFILTER1" class="numstep" />
            <label for="filter_minute" class="left" style="width:auto;">Min:</label>
            <input type="text" maxlength="2" name="filter_minute" id="filter_minute" style="width:16px;" maxval="59" minval="0" value="{{$filter_minute}}" onchange="fixNumStepVal(this)" />
            <img src="gui/numstep.gif" border="0" usemap="#MapFILTER2" class="numstep" />
            <map name="MapFILTER1" id="MapFILTER1">
                <area shape="rect" coords="0,0,7,5" href="javascript:void(0)" onclick="incrementNumStep('filter_hour')" />
                <area shape="rect" coords="0,5,7,10" href="javascript:void(0)" onclick="decrementNumStep('filter_hour')" />
            </map>
            <map name="MapFILTER2" id="MapFILTER2">
                <area shape="rect" coords="0,0,7,5" href="javascript:void(0)" onclick="incrementNumStep('filter_minute')" />
                <area shape="rect" coords="0,5,7,10" href="javascript:void(0)" onclick="decrementNumStep('filter_minute')" />
            </map>
        </fieldset>
        <fieldset>
            <legend>DO:</legend>
            <label for="filter_date_do" class="left">Datum:</label>
            <input type="text" name="filter_date_do" id="filter_date_do" value="{{$filter_date_do}}" />
            <input type="button" class="datePicker" onclick="displayDatePicker('filter_date_do',this)" />
            <br clear="all" />
            <label for="filter_hour_do" class="left">Sat:</label>
            <input type="text" maxlength="2" name="filter_hour_do" id="filter_hour_do" style="width:16px;" maxval="23" minval="0" value="{{$filter_hour_do}}" onchange="fixNumStepVal(this);" />
            <img src="gui/numstep.gif" border="0" usemap="#MapFILTER1_do" class="numstep" />
            <label for="filter_minute_do" class="left" style="width:auto;">Min:</label>
            <input type="text" maxlength="2" name="filter_minute_do" id="filter_minute_do" style="width:16px;" maxval="59" minval="0" value="{{$filter_minute_do}}" onchange="fixNumStepVal(this)" />
            <img src="gui/numstep.gif" border="0" usemap="#MapFILTER2_do" class="numstep" />
            <map name="MapFILTER1_do" id="MapFILTER1_do">
                <area shape="rect" coords="0,0,7,5" href="javascript:void(0)" onclick="incrementNumStep('filter_hour_do')" />
                <area shape="rect" coords="0,5,7,10" href="javascript:void(0)" onclick="decrementNumStep('filter_hour_do')" />
            </map>
            <map name="MapFILTER2_do" id="MapFILTER2_do">
                <area shape="rect" coords="0,0,7,5" href="javascript:void(0)" onclick="incrementNumStep('filter_minute_do')" />
                <area shape="rect" coords="0,5,7,10" href="javascript:void(0)" onclick="decrementNumStep('filter_minute_do')" />
            </map>
        </fieldset>
	</fieldset>
</form><br clear="all" />
<div id="meetingTicketsResult" class="area">
	{{$comment_start}}
	<ol id="MTResultList">
		{{%loop start id}}
		<li value="{{$id}}" zauzet="{{$zauzet}}" onclick="ticketSelectDeselect(this)">
			<input type="checkbox" value="1" onclick="this.checked=this.checked?false:true; ticketSelectDeselect(this.parentNode); event.stopPropagation()" name="listic_{{$id}}" {{$disabled_checkbox}} />
            <input title="izmeni" type="button" class="editBtn" value="edit" onclick="meetingTicketsAddkomercijalista(this,'{{$id}}'); event.stopPropagation();" />
            <input title="izmeni" type="button" class="delBtn" value="delete" onclick="meetingTicketsDelete(this,'{{$id}}','{{$userCreated}}'); event.stopPropagation();" />
            <strong>{{$num}}.&nbsp;{{$name}}</strong>
			<div class="MT_info">
            	{{$manager_komercijalista}}
				<span class="MT_ticket_poreklo">{{$poreklo}}</span>
                {{$adresa}}<br clear="all" />
                <span title="vreme sastanka" class="MT_ticket_time"><strong>{{$vreme}}</strong></span>
				tel:&nbsp;{{$telefon}}<br clear="all" />
                <span title="poslednja izmena:&nbsp;{{$user}}" style="float:right; display:block;">{{$vreme_poziva}}</span>
                <span class="MT_napomena">{{$napomena}}</span>
			</div>
			
		</li>
		{{%loop end}}
	</ol>
    {{$comment_start_user_rights}}
	<div style="float:left" id="MT_resultList_actions">
    	<div style="margin-left:5px; font-size:10px; color:#aaa;">{{$info}}</div>
		<a style="margin-left:5px;" href="javascript:void(0)" onclick="ticketsSelectAll(this)">sve</a>
		
		<input type="button" onclick="createMeetingTickets(this)" value="kreiraj..."  /><br clear="all" />
		<input type="button" onclick="createMeetingTickets(this,1)" class="txt" value="izvezi..."  {{$diz_admin}}/>
	</div>
    {{$comment_end_user_rights}}
	{{$comment_end_nores}}
</div>
<div id="MT_listici" class="area">
	<input type="button" onclick="var h=this.parentNode.innerHTML; h=h.substr(h.lastIndexOf('<!--iseci-->')); odstampaj(h)" value="print" /><br clear="all" /><!--iseci-->
	<ol id="MT_listici_list">
		
	</ol>
</div>
{{$comment_end}}
</div>